import { mock } from "mockjs";

// 定义一个mock接口，返回用户列表
export default [
  {
    url: "/api/user/login",
    method: "post",
    response: () => {
      return {
        code: 0,
        data: mock({
          "list|10": [
            {
              id: "@id",
              name: "@name",
              age: "@integer(18, 60)",
              email: "@email",
              avatar: "@image",
            },
          ],
        }),
      };
    },
  },
];